/** 
 * 项目名:shiro 
 * 文件名:RoleServiceImpl.java 
 * 包名:com.spring.shiro.service.impl 
 * 创建日期:2015年2月13日上午11:12:48 
 * 版权(c): ZTESOFT TECHNOLOGY CO.,LTD.Copyright 2012-2030.All rights reserved
 * 
*/  
  
package com.spring.shiro.service.impl;  

import com.spring.shiro.dao.IRoleDao;
import com.spring.shiro.dao.impl.RoleDaoImpl;
import com.spring.shiro.po.Role;
import com.spring.shiro.service.IRoleService;
 
public class RoleServiceImpl implements IRoleService {

	private IRoleDao roleDao = new RoleDaoImpl();
	
	@Override
	public Role createRole(Role role) {

		return roleDao.createRole(role);
	}

	@Override
	public void deleteRole(Long roleId) {
		
		roleDao.deleteRole(roleId);
	}

	@Override
	public void correlationPermissions(Long roleId, Long... permissionIds) {
		
		roleDao.correlationPermissions(roleId, permissionIds);
	}

	@Override
	public void uncorrelationPermissions(Long roleId, Long... permissionIds) {
		roleDao.uncorrelationPermissions(roleId, permissionIds);
	}

}
  